import { createRouter, createWebHistory } from 'vue-router'
import user from '../views/user.vue'
import login from '../views/login.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'login',
      component: login
    },
    {
      path: '/views/user',
      name: 'user',
      // component: () => import('../views/user.vue')
      component: user
    }
  ]
})

export default router
